@import '../../../themes/mixins/overlay-backdrop';
@import '../../../themes/mixins/layers.scss';

// TODO reduce duplication with AlertsOverlay
// https://input-output.atlassian.net/browse/DDW-928

.component {
  align-items: center;
  background-color: rgba(255, 185, 35, 0.98);
  color: #2d2d2d;
  display: flex;
  flex-direction: column;
  font-family: var(--font-regular);
  height: 100vh;
  justify-content: center;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: $dialog-z-index;
  @include overlay-backrop;

  .actionBtn {
    background-color: rgba(45, 45, 45, 0.1);
    border: 1px solid #2d2d2d;
    border-radius: 5px;
    box-sizing: border-box;
    color: #2d2d2d;
    font-family: var(--font-medium);
    line-height: 1.36;
    margin-bottom: 22.5px;
    min-height: 50px;
    width: 360px;

    &:hover {
      background-color: #2d2d2d;
      color: #fff;
    }
  }

  .closeButton {
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 4;

    span {
      border-radius: 50%;
      height: 44px;
      width: 44px;

      &:hover {
        background-color: rgba(0, 0, 0, 0.16);
        border-radius: 50%;
      }
    }

    svg {
      height: 12px;
      margin-top: 16px;
      width: 12px;

      polygon {
        fill: #2d2d2d;
      }

      path {
        stroke: #2d2d2d;
      }
    }
  }

  .content {
    background-color: rgba(45, 45, 45, 0.1);

    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 30px;
    max-height: 464px;
    max-width: 600px;
    min-width: 600px;
    opacity: 0.8;
    overflow-y: scroll;
    padding: 12px 20px;
    word-break: break-word;

    &::-webkit-scrollbar-thumb {
      background-color: rgba(45, 45, 45, 0.3);
      min-height: 60px;
      outline: none;
      width: 4px;

      &:hover {
        background-color: rgba(45, 45, 45, 0.5);
      }
    }

    & p {
      margin-bottom: 11px;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .title {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 16px;
    margin-top: 0;
  }

  .decideLaterLink {
    border-bottom: 1px solid #2d2d2d;
    color: #2d2d2d;
    cursor: pointer;
    display: inline-block;
    font-family: var(--font-regular);
    font-size: 14px;
    line-height: 1.36;
    opacity: 0.8;
  }
}
